
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="http://yd.12301.cc/css/yunding/member.css" />
<script language="javascript" src="http://yd.12301.cc/js/yunding/common/jquery-1.8.3.min.js"></script>

<div id="tab1" class="headTitle">
			<div class="headCon" ><span class="icon i03"></span><span class="text">游记</span></div>
</div>   
        <div>
		
		
       
        <div  class="hcon travel_p">                
			   <form method="post" action="call/pppp.php">
			   <p>标题： <input class="title" type="text" name="title" value=""/></p>
			   <p>请至少添加一张图片</p>
				<fieldset>
					<textarea id="detailInfo1" name="detailInfo" data-required="2" title="请输入<?=$FieldList[$ptype]['bhjq']['t']?>" ></textarea>
					<button type="button" class="save save_btn" id="save1" >发&nbsp;&nbsp;布</button></div>
				</fieldset>
			</form>
		</div>
   
		</div>	
		<!-- <ul id="mainAreas"></ul> -->
		<!-- <script src="../../yb/js/jquery.js" type="text/javascript" charset="utf-8"></script> -->
		<script src="http://yd.12301.cc/js/yunding/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8" src="http://www.12301.cc/ue_126/ueditor_config_mini_note.js"></script>
		<!-- 核心文件 -->
		<script type="text/javascript" src="http://yd.12301.cc/ue_126/ueditor.all.min.js"></script>
		<script type="text/javascript">
			// <![CDATA[
				
			$(document).ready(function () {
				var ue = UE.getEditor('detailInfo1');
				
				$("#save1").click(function(){
					title = $(".title").val(); 
					 if(title==''){
						alert('标题不能为空');
						return false;
					}
					var txt_content = ue.getContent();
					
					$("#detailInfo1").val(txt_content);
					$("form").submit(); 
				});
				
				$('#menu2').tabify();
			});
					
			 $('.fenxiang').click(function(){
			if (window.confirm("确认要分享？")) {
			 var fen = $(this).attr("data");
             $.get('share.php?op=1&id='+fen).done(function(json_res){
                alert(json_res);
				
			  if(json_res.code==100) {
				alert(json_res.msg);
					}
				});
				}
			else{
				return false;
				}
			});		
            
			
			
			
			$('.shanchu').click(function(){
			if (window.confirm("确认要删除？")) {
             var del = $(this).attr("data");
             $.get('share.php?op=2&id='+del).done(function(json_res){
				alert(json_res);
				window.location.reload(); 
				if(json_res.code==100) {
				alert(json_res);
				
					}
				});
				}
				else{
				return false;
				}
			});
			
		</script>
</div>
</div>
</div>